import Layout from '../pages/Layout'
import Login from "@/pages/Login";
import AuthRoute from "@/components/AuthRoute";
import  Home from '@/pages/Home'
import Article from "@/pages/Article";
import Publish from "@/pages/Publish";
export  default [
    {
        path:'/',
        element:<AuthRoute><Layout></Layout></AuthRoute>,
        children:[
            {
                path:'',
                element:<Home />,
            },
            {
                path:'article',
                element:<Article />,
            },
            {
                path:'publish',
                element:<Publish />,
            }
        ]
    },
    {
        path:'/login',
        element: <Login></Login>
    }

]
